package com.efesco.test;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import java.util.*;

/**
 * bbbViewModel
 */
public class bbbViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
    // Add your code here
	  Dataset ds=this.getDataset("dataset1");
	  RecordIterator it=ds.recordIterator();
	  it.setVisibility(ds.FILTER_ALL);
	  while (it.hasNext()){
		 Record record=(Record)it.next();
		 System.out.println(record.getString("p_name")+"PPPPPPPPPPP:"+record.getState());
	  }
	  ds.moveFirst();
	  while(!ds.isLast()){
		  //System.out.println(ds.getString("p_name"));
		  ds.moveNext();
	  }
    //super.doUpdateData(parameters, outParameters);
  }

}
